A09 - Winter in ALGO Kingdom
提出
code: python
h, w, n = map(int, input().split())
# print(abcd)
# 1, 1, 3, 3], [2, 2, 4, 4
z = [0 * (w+1) for _ in range(h+1)] # O(N*H*W)
for a, b, c, d in abcd:
for i in range(a, c+1):
for j in range(b, d*1):
pass
解答
code: python
h, w, n = map(int, input().split())
# 各日について加算
x = [0 * (w + 2) for _ in range(h + 2) ] z = [0 * (w + 2) for _ in range(h + 2) ] for a, b, c, d in abcd:
for i in range(1, h+1):
for j in range(1, w+1):
for j in range(1, w+1):
for i in range(1, h+1):
for i in range(1, h+1):
for j in range(1, w+1):
if j >= 2:
print(" ", end="")
print("")